package pt.ua.helpdesk.client;

import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Widget;

/**
 * Class responsible for removing a ticket
 * @author Amigos do Noddy
 *
 */
public class TicketRemoveOnClick implements ClickListener 
{
	private Integer IDTicket;
	
	/**
	 * Class constructor
	 * @param idTicket Identifier of the ticket
	 */
	public TicketRemoveOnClick(Integer idTicket)
	{
		this.IDTicket = idTicket;
	}
	
	/**
	 * Click listener
	 */
	public void onClick(Widget sender) 
	{
		// TODO Auto-generated method stub
		Default.loadComposite(new TicketRemove(IDTicket));
	}
}
